import request from '@/utils/request'

// 查询中药方剂列表
export function listTdmZhongYaoFangJi(query) {
  return request({
    url: '/tdmdata/TdmZhongYaoFangJi/list',
    method: 'get',
    params: query
  })
}

// 查询中药方剂详细
export function getTdmZhongYaoFangJi(id) {
  return request({
    url: '/tdmdata/TdmZhongYaoFangJi/' + id,
    method: 'get'
  })
}

// 新增中药方剂
export function addTdmZhongYaoFangJi(data) {
  return request({
    url: '/tdmdata/TdmZhongYaoFangJi',
    method: 'post',
    data: data
  })
}

// 修改中药方剂
export function updateTdmZhongYaoFangJi(data) {
  return request({
    url: '/tdmdata/TdmZhongYaoFangJi',
    method: 'put',
    data: data
  })
}

// 删除中药方剂
export function delTdmZhongYaoFangJi(id) {
  return request({
    url: '/tdmdata/TdmZhongYaoFangJi/' + id,
    method: 'delete'
  })
}
// 审核
export function to_examine(id,shenHe,pinZhong) {
  const data = {id, shenHe,pinZhong}
  return request({
    url: '/admin/examine',
    method: 'put',
    data:data
  })
}
